package com.ozo.boot.manage.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * 用户修改对象
 *
 * @author qiangesoft
 * @date 2024-10-29
 */
@Schema(description = "用户修改对象")
@Data
@NoArgsConstructor
public class UserEditDTO {

    @NotNull(message = "id不能为空")
    @Schema(description = "id")
    private Long id;

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名")
    private String username;

    @NotBlank(message = "昵称不能为空")
    @Schema(description = "昵称")
    private String nickname;

    @NotBlank(message = "手机号不能为空")
    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "姓名")
    private String realName;

    @Schema(description = "性别：1-男 0-女")
    private String gender;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "出生日期")
    private LocalDate birthDate;

    @Schema(description = "身份证号")
    private String idCard;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "备注")
    private String remark;

}
